#ifndef LIGHTSOURCEDIALOG_H
#define LIGHTSOURCEDIALOG_H

#include <QDialog>

namespace Ui {
class LightSourceDialog;
}

class LightSourceDialog : public QDialog
{
    Q_OBJECT

public:
    explicit LightSourceDialog(QWidget *parent = nullptr);
    ~LightSourceDialog();

private:
	typedef enum _LIGHT_TYPE {
		LIGHT_RED = 2,
		LIGHT_BLUE = 3,
		LIGHT_WHITE = 4,
		LIGHT_ASSIST = 1,
	}LIGHT_TYPE;
    Ui::LightSourceDialog *ui;

    void GetLight(LIGHT_TYPE type);
    void SetLight(int light, LIGHT_TYPE type);
    void closeEvent(QCloseEvent *);
private slots:

    void SliderValueChangedRed();
    void EditTextChangedRed();
	void SliderValueChangedBlue();
	void EditTextChangedBlue();
    void SliderValueChangedWhite();
    void EditTextChangedWhite();
	void SliderValueChanged4();
	void EditTextChanged4();
	void UpdateUseCount();
};

#endif // LIGHTSOURCEDIALOG_H
